package com.panfeng.xcloud.boss.provider.assets.dao.mapper;

import com.panfeng.xcloud.boss.provider.assets.dto.request.UpdateStrategyByAdminReqDTO;
import com.panfeng.xcloud.dao.assets.entity.CoinExchangeSet;
import com.panfeng.xcloud.dao.assets.mapper.CoinExchangeSetMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CoinExchangeSetMapperExt extends CoinExchangeSetMapper {

    //查询用户的交易对设置
    List<CoinExchangeSet> queryCoinExchangeSetByUserIdExchangeTypeCoin(@Param("userId") String userId,
                                                                       @Param("exchangeType") Integer exchangeType,
                                                                       @Param("destinationCoin") String destinationCoin,
                                                                       @Param("sourceCoin") String sourceCoin,
                                                                       @Param("direction") String direction);

    List<CoinExchangeSet> selectByList(UpdateStrategyByAdminReqDTO updateStrategyByAdminReqDTO);

    int updateByCoinExchangeSet(CoinExchangeSet coinExchangeSet);
}
